package com.cmrx.model.dao;

import java.util.List;
import java.util.Map;

import com.cmrx.model.entity.*;
import com.cmrx.model.vo.AnalysisVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface AnalysisDao {
	
	AnalysisSuggestion selectAnalysisSuggestionById(CaseDetail caseDetail);
	
	List<CommissionTools> seleCommissionTools(@Param("analysis_id") String analysis_id);
	
	List<String> selectInfoIds(@Param("techid") String techid, @Param("casetype") String casetype, @Param("regionalism") String regionalism);

    List<AnalysisVo> selectAnalysisVo(@Param("techid") String techid, @Param("casetype") String casetype, @Param("regionalism") String regionalism);

	int addCommissiontools(CommissionTools commissionTools);
	
	int updateCommissiontools(CommissionTools commissionTools);
	
	int deleteCommissiontools(CommissionTools commissionTools);
	
	int addAnalysis(AnalysisSuggestion analysisSuggestion);
	
	int updateAnalysis(AnalysisSuggestion analysisSuggestion);
	
	int addAnalysisContent(BigtextClob bigtextClob);
	
	int updateAnalysisContent(BigtextClob bigtextClob);

	int selectCountAnalysis(@Param("investigationId") String investigationId);

	AnalysisResult selectAnalysisResult(@Param("investigationId") String investigationId);

	int updateAnalysisResult(AnalysisResult analysisResult);

	int addAnalysisResult(AnalysisResult analysisResult);

	List<Map<String,String>> selectToolName(@Param("userCard") String userCard);

	int addToolName(Map<String, String> map);

	int deleteToolName(@Param("id") String id);

	String selectAnalysisId(@Param("analysisId") String analysisId);

}
